package com.intct.hbase;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.client.ConnectionFactory;

import java.io.IOException;

/**
 * @author gufg
 * @since 2025-09-28 16:06
 */
public class ConnectionHBase {
    public static void main(String[] args) throws IOException {
//        Configuration conf = HBaseConfiguration.create();
//        conf.set("hbase.zookeeper.quorum", "cdh-node");
//        conf.set("hbase.zookeeper.property.clientport", "2181");

        Connection connection = null;

        System.out.println(connection);
        connection = ConnectionFactory.createConnection();
        System.out.println(connection);

        connection.close();
    }
}
